/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Connection;

import java.sql.*;
import java.util.*;

/**
 *
 * @author Quang Thao
 */
public class DBConnect {

    public static Connection con;
    public  static Connection Connect() throws Exception
    {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        String url = "jdbc:odbc:BookStoreDB";
        con = DriverManager.getConnection(url);
        return con;
    }
}
